	<html>
	  <head>
    <title>Manage Members</title>
	<script src="./lib/jquery.js" ></script>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="./lib/jquery.mobile-1.1.1.min.css" />
	<script src="./lib/jquery-1.7.1.min.js"></script>
	<script language="JavaScript" SRC="config.js"></script>
	<script src="./lib/jquery.mobile-1.1.1.min.js"></script>
	<script type="text/javascript" charset="utf-8">
  var query = window.location.search;
  // Skip the leading ?, which should always be there, 
  // but be careful anyway
  if (query.substring(0, 1) == '?') {
    query = query.substring(1);
  }
  var data = query.split(','); 
  for (i = 0; (i < data.length); i++) {
    data[i] = unescape(data[i]);
    data[i]=data[i].replace('userid=','');
  }

 function get(){
		 alert("get is called"+data[0]);
       $.post('http://'+serverip+'/socialengine/mobileservice/edituser/userstats',{userid:data[0]},
           function(output){
        $('#mylist').append('<li>'+'<b>Profile Views </b>'+'<span class="ui-li-aside"><strong>'+output.profileview+'</strong></span></li>').listview('refresh');
        $('#mylist').append('<li>'+'<b>Friends </b>'+'<span class="ui-li-aside"><strong>'+output.friends+'</strong></span></li>').listview('refresh');
        $('#mylist').append('<li>'+'<b>Last Update</b>'+'<span class="ui-li-aside"><strong>'+output.lastupdate+'</strong></span></li>').listview('refresh');
        $('#mylist').append('<li>'+'<b>Joined </b>'+'<span class="ui-li-aside"><strong>'+output.joined+'</strong></span></li>').listview('refresh');
        $('#mylist').append('<li>'+'<b>Joined IP </b>'+'<span class="ui-li-aside"><strong>'+output.userip+'</strong></span></li>').listview('refresh');
         $('#mylist').append('<li>'+'<b>Last Login </b>'+'<span class="ui-li-aside"><strong>'+output.lastlogin_date+'</strong></span></li>').listview('refresh');
          $('#mylist').append('<li>'+'<b>Last Login IP </b>'+'<span class="ui-li-aside"><strong>'+output.lastlogin_ip+'</strong></span></li>').listview('refresh');
       	
 
           },"json");
   };
  
</script>

  </head>
<body onload="get();">
<div data-role="page">
	<div data-role="header">
	<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" rel="external">Home</a>
		<h1>Member Statistics</h1>
	</div><!-- /header -->
	<div   data-role="content">
	<ul data-role="listview"  id="mylist" data-filter="true">
	</ul>
  </div><!-- /content -->

</div><!-- /page -->
 </body>
</html>
